<?php if (!isset($_SESSION)) session_start(); ?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">

<title>Koreanet</title>

<!-- Nanum Webfont -->
<style>
* {
	font-family: 'NanumGothic' !important;
}
</style>
<script src="http://www.google.com/jsapi"></script>
<script>
 google.load( "webfont", "1" );
 google.setOnLoadCallback(function() {
  WebFont.load({ custom: {
   families: [ "NanumGothic" ],
   urls: [ "http://fontface.kr/NanumGothic/css" ]
  }});
 });
</script>

<!-- Bootstrap core CSS -->
<link href="./dist/css/bootstrap.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="./css/daily_report.css" rel="stylesheet">
<link rel="stylesheet"
	href="./lib/datetimepicker/bootstrap-datetimepicker.min.css" />
</head>

<body>
<?php include 'header.php';?>
<?php require_once './class/Evaluation.inc';?>
<?php require_once './class/Evaluation_check.inc';?>
<?php

if ($getType == 1) {
	if ($login == null || $login->getGrade () > 2) {
		echo "<script type='text/javascript'>";
		echo "location.replace('./main.php');";
		echo "</script>";
		exit ();
	}
}

?>
	<div class="container container_bottom">
		<div class="row row_margin">
			<div class="col-md-12">
				<h2><?php echo substr($timecheck, 0,4);?>년 <?php echo substr($timecheck, 5,2);;?>월 평가수행</h2>
			</div>
		</div>
		<form class="form-signin" role="form" id="dataform" action="./ajax/create_evaluation_data.php" method="post">
			<?php 
			$eval = new Evaluation();
			$eval->search4table_question("3",date('Y/m/d'),$login->getSession());
			?>
			<div class="row row_margin">
				<div class="col-md-12">
					<div class="bs-example bs-example-tabs" data-example-id="togglable-tabs">
					    <ul id="myTabs" class="nav nav-tabs" role="tablist">
						    <?php echo $eval->tab1; ?>
						    <?php echo $eval->tab2; ?>
						    <?php echo $eval->tab3; ?>
						    <?php echo $eval->tab4; ?>
					    </ul>
					    <div id="myTabContent" class="tab-content">
						    <?php echo $eval->tab1_val; ?>
						    <?php echo $eval->tab2_val; ?>
						    <?php echo $eval->tab3_val; ?>
						    <?php echo $eval->tab4_val; ?>
	      				</div>
	  				</div>
	  			</div>
			</div>
			<div class="row row_margin">
				<div class="col-md-12 text-right">
					<button class="btn btn-lg btn-primary" type="button"
						onclick="javascript:initData()">저장</button>
				</div>
			</div>
		</form>
	</div>
	<!-- /container -->

	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
	<script src="./dist/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="./lib/moment/moment.js"></script>
	<script type="text/javascript" src="./lib/moment/transition.js"></script>
	<script type="text/javascript" src="./lib/moment/collapse.js"></script>
	<script type="text/javascript"
		src="./lib/datetimepicker/bootstrap-datetimepicker.min.js"></script>

	<script type="text/javascript">
	$(window).load(function () {

	});
	$(document).ready(function () {
		
	});
	function initData() {
		$('#dataform').submit();
	}
	</script>
</body>
</html>